﻿using System;
using System.Collections.Generic;
using System.Windows.Forms;
using System.IO;
using System.Diagnostics;
using TestNodataFilter;
using ESRI.ArcGIS.esriSystem;

namespace WindowsApplication1
{
    static class ProgramAdmin
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main()        
        {
            LicenseInitializer m_AOLicenseInitializer = new LicenseInitializer();
            if (!m_AOLicenseInitializer.InitializeApplication(new esriLicenseProductCode[] { esriLicenseProductCode.esriLicenseProductCodeEngineGeoDB},
            new esriLicenseExtensionCode[] { }))
            {
                MessageBox.Show("缺少ESRI的授权");
                return;
            }
            
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new Form1("admin"));            
        }
    }
}